package com.example.orderserver.config;

import feign.codec.ErrorDecoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author benjamin_5
 * @Description 自定义feign错误返回体
 * @date 2023/3/10
 */
@Configuration
public class FeignErrorConfig {

    @Bean
    public ErrorDecoder errorDecoder(){
        return new FeignErrorDecoder();
    }
}
